Class HeaderValue

Summary

Fully Qualified Name: Laminas\Http\Header\HeaderValue

Description

Methods

Name Description Defined By
assertValid() Assert a header value is valid. HeaderValue
filter() Filter a header value HeaderValue
isValid() Validate a header value. HeaderValue

Method Details

assertValid()

Assert a header value is valid.

Parameter Name Type Description
$value string

Returns: void

filter()

Filter a header value

Ensures CRLF header injection vectors are filtered.

Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; only one whitespace character is allowed between visible characters.

Parameter Name Type Description
$value string

Returns: string

isValid()

Validate a header value.

Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; only one whitespace character is allowed between visible characters.

Parameter Name Type Description
$value string

Returns: bool

Top